# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-q
_pkgname=q
pkgver=2.6
pkgrel=2
pkgdesc='Quick-and-dirty debugging output for tired programmers.'
arch=('any')
url='https://pypi.org/project/q/#files'
license=('custom:unknown')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c187b2e329c923f02db455552f44419b501bcfd23a29180b029b7800253037756aee8037665854f5f46e338e6237283eae803cc1e4fb54bc155318fff2d54eb7')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  chmod 644 "$pkgdir/usr/lib/python2.7/site-packages/q-2.6-py2.7.egg-info/"*
}

